
	package com.inotai.jasmine;
	
	import com.inotai.jasmine.value.*;
	
	class JasmineFormatter
	{
		JasmineFormatter() {
		}
		
		public void beforeValue( Stack stack, StringBuilder builder ) {
			// Nothing here
		}
		
		public void afterValue( Stack stack, StringBuilder builder ) {
			// Nothing here
		}
		
		public void beforeListChild( Stack stack, Value value, int index, int last, StringBuilder builder ) {
			// Nothing here
		}
		
		public void afterListChild( Stack stack, Value value, int index, int last, StringBuilder builder ) {
			if( index < last ) {
				builder.append(' ');
			}
		}
		
		public void beforeDictionaryChild( Stack stack, Value value, String key, int index, int last, StringBuilder builder ) {
			// Nothing here
		}
		
		public void afterDictionaryChild( Stack stack, Value value, String key, int index, int last, StringBuilder builder ) {
			if( index < last ) {
				builder.append(' ');
			}
		}
	}